package com.cxm.homework2.constructor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("com/cxm/homework2/constructor/spring-config.xml");
        UserDao userDao = ac.getBean(UserDao.class);
        userDao.say();
    }
}
